<!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta charset="UTF-8">
    <title>商户地址</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href="${resources}/plugins/fontAwesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="${resources}/plugins/swiper/3.3.1/swiper.min.css" rel="stylesheet" type="text/css">
	<style type="text/css">
        body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}
    </style>
        <#include "setwxshare.ftl"/>
</head>
	

<body>
 	<div id="allmap"></div>
</body>

<script src="${resources}/plugins/jquery/2.2.2/jquery.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=xVvsn3oF1vhtA1Ggi4ZfW4VWWgP3wmML"></script>">
<script type="text/javascript">
		$(function(){
			var longitude='${merchant.longitude}';
			var latitude='${merchant.latitude}';
			
			// 百度地图API功能
			var map = new BMap.Map("allmap");    // 创建Map实例
			map.centerAndZoom(new BMap.Point(longitude, latitude),16);  // 初始化地图,设置中心点坐标和地图级别
			map.addControl(new BMap.MapTypeControl());   //添加地图类型控件
			map.setCurrentCity("山西");          // 设置地图显示的城市 此项是必须设置的
			map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
			//标注地址
			map.addOverlay(new BMap.Marker(new BMap.Point(longitude, latitude)));
			
		})
</script>
 
</html>
 
